<%@page import="com.kaishengit.entity.Prod"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'main.jsp' starting page</title>
  </head>
  
  <body>
  <a href="prod.jspx?m=add">添加新商品</a>
  <a href="order.jspx">我的订单</a>

  <table border="1" width="70%">
  	<tr>
  		<th>商品名称</th>
  		<th>商品价格</th>
  		<th>操作</th>
  	</tr>
  	<c:forEach items="${prodList}" var="p">
	  	<tr>
	  		<td>${p.prodName }</td>
	  		<td>${p.price }</td>
	  		<td>
	  			<a href="prod.jspx?m=edit&id=${p.id }">修改</a>
	  			<a href="prod.jspx?m=del&id=${p.id }">删除</a>
	  			<a href="addcar.jsp?id=${p.id }">放入购物车</a>
	  		</td>
	  	</tr>
  	</c:forEach>
  </table>
  
  
  
  </body>
</html>
